<template>
  <div>
    <div class="btns">
      <el-button @click="nowTag" class="bg">现有确诊</el-button>
      <el-button @click="allTag" class="bg">累计确诊</el-button>
    </div>
    <Map :tag_1='tag'></Map>
  </div>
</template>

<script>
  import Map from '../../components/Map'
  import axios from '@/http/axios'
  export default {
    created() {
      // this.findJson();

    },
    components: {
      Map
    },
    data() {
      return {
        tag: 0
      }
      //0 -> 是现有确诊
      //1 -> 是累计确诊
    },
    methods: {
      // findJson(){
      //     axios.defaults.baseURL = 'http://localhost:9528'
      //     axios.get('/test/news/wap/fymap2020_data.d.json').then((res)=>{
      //         console.log(res);
      //     })
      // },
      nowTag() {
        this.tag = 0;
      },
      allTag() {
        this.tag = 1;
      },



    }
  }

</script>
<style scoped>
  .btns .el-button:last-child {
    margin-left: 0;
  }

  .bg {
    color: #fff;
    background-color: #2cb5ac;
  }

</style>
